package com.jinarusha.shareprayers.Model;

import java.util.ArrayList;

import android.text.format.Time;

public abstract class AUserModel {
	private String userID;
	private String password;
	private Time lastSynced;
	private ArrayList<Group> friendGroupList;
	private ArrayList<AFriend> friendIndividualList;

	public AUserModel() {

		userID = "";
		password = "";
		lastSynced = new Time();
		lastSynced.setToNow();
		friendGroupList = new ArrayList<Group>();
		friendIndividualList = new ArrayList<AFriend>();
	}

	public String getUserID() {
		return userID;
	}

	public void setUserID(String userID) {
		this.userID = userID;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public Time getLastSynced() {
		return lastSynced;
	}

	public void setLastSynced() {
		this.lastSynced.setToNow();
	}

	public ArrayList<Group> getFriendGroupList() {
		return friendGroupList;
	}

	public void setFriendGroupList(ArrayList<Group> friendGroupList) {
		this.friendGroupList = friendGroupList;
	}

	public Boolean addFriendGroup(Group group) {
		return friendGroupList.add(group);
	}

	public Boolean removeFriendGroup(Group group) {
		return friendGroupList.remove(group);
	}

	public ArrayList<AFriend> getFriendIndividualList() {
		return friendIndividualList;
	}

	public void setFriendIndividualList(ArrayList<AFriend> friendIndividualList) {
		this.friendIndividualList = friendIndividualList;
	}

	public Boolean addIndividualFriend(AFriend friend) {
		return friendIndividualList.add(friend);
	}

	public Boolean removeIndividualFriend(AFriend friend) {
		return friendIndividualList.remove(friend);
	}

}
